<template>
	<m-page :pageData="pageData">
		<view slot="content" style="min-height:550px">
			<jyf-parser :html="content" ref="article "></jyf-parser>
		</view>
	</m-page>
</template>

<script>
	import jyfParser from '@/components/jyf-parser/jyf-parser'
	export default {
		data() {
			return {
				pageData:{
					showBrand:true,
					showTips:true,
					title:'',
					brand:'消息',
					titleClass:'disn',
					diy:true,
					m:true,
				},
				options:{},
				content:''
				
			}
		},
		onLoad(options) {
			this.pageData.title = '消息详情'
			this.options = options;
			if(uni.getStorageSync('msgContent')){
				this.content = uni.getStorageSync('msgContent')
				this.msgUpdateStatus()
			}else{
				this.utils.goPath('/pages/index/index')
			}
		},
		methods: {
			msgUpdateStatus(){
				let par = {
					id:this.options.id *1
				}
				this.$api.msgUpdateStatus(par).then(res => {
					if(res.code == 200){
						this.getMsg()
					}
				})
			},
		}
	}
</script>

<style>

</style>
